package com.lujieni.async.controller;

import com.lujieni.async.service.B;
import com.lujieni.async.service.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @Title: HelloController
 * @Description:
 * @date 2022/2/23 2:53 下午
 */
@RestController
public class HelloController {

    @Autowired
    private B b; //让b首先注册到容器中产生循环依赖的错误

    @RequestMapping("/b")
    public String show() {
        //a.testA();
        return "show";
    }

}
